<?php
namespace app\common\wechat\pay;

use think\Loader;

Loader::import('wechat.WxPay', EXTEND_PATH, '.Api.php');

class WxPayConfig extends \WxPayConfigInterface
{
    private $app_id;
    private $app_secret;
    private $merchant_id;
    private $key;
    private $notify_url;
//    private $sign_type = 'HMAC-SHA256';

	public function GetAppId()
	{
		return $this->app_id;
	}

    public function SetAppId($app_id)
    {
        $this->app_id = $app_id;
    }

    public function GetAppSecret()
    {
        return $this->app_secret;
    }

    public function SetAppSecret($app_secret)
    {
        $this->app_secret = $app_secret;
    }

	public function GetMerchantId()
	{
        return $this->merchant_id;
	}

    public function SetMerchantId($merchant_id)
    {
        $this->merchant_id = $merchant_id;
    }

    public function GetKey()
    {
        return $this->key;
    }

    public function SetKey($key)
    {
        $this->key = $key;
    }

	public function GetNotifyUrl()
	{
        return $this->notify_url;
	}

    public function SetNotifyUrl($notify_url)
    {
        $this->notify_url = $notify_url;
    }

	public function GetSignType()
	{
		return "HMAC-SHA256";
	}

	public function GetProxy(&$proxyHost, &$proxyPort)
	{
		$proxyHost = "0.0.0.0";
		$proxyPort = 0;
	}

	public function GetReportLevenl()
	{
		return 1;
	}

	public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath)
	{
		$sslCertPath = '../cert/apiclient_cert.pem';
		$sslKeyPath = '../cert/apiclient_key.pem';
	}
}
